home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Palettes / MiscSwapKitPalette / MiscSwapKit.subproj / MiscSwapViewByPopUp.h < prev    next >
Encoding:
Text File  |  1994-09-21  |  2.1 KB  |  65 lines

  1. /* MiscSwapViewByPopUp.h                 
  2.  *
  3.  * This is a SwapView that can handle popUps either by tag or by title.
  4.  * If a tag is not 0 it will try to choose the viewController by title.
  5.  *
  6.  * Usage: Like the normal swapView but we have to set the popUpCover
  7.  *          to ensure that there will be a swapAction anywhere.
  8.  *
  9.  * Notes: The popUps could be handled as a matrix object too but there are some
  10.  *          problems with that when the popUp appears for the first time.
  11.  *        
  12.  *          We compare tags by default first. So if you work with multiple NIBs
  13.  *          you must use a tag for every cell (to make it work at all) 
  14.  *          because there is no way in IB to make inter NIB connections. This 
  15.  *          will never be possible anyway. Not NeXTs fault. It's a limitation
  16.  *          of the NIB concept. (OneNIB to MultiNIB problem)
  17.  *
  18.  * Written by:         Thomas Engel
  19.  * Created:            24.01.1994 (Copyright 1994 Thomas Engel)
  20.  * Last modified:     24.02.1994
  21.  */
  22.  
  23. //    This object is included in the MiscKit by permission from the author
  24. //    and its use is governed by the MiscKit license, found in the file
  25. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  26. //    for a list of all applicable permissions and restrictions.
  27.  
  28.  
  29. #import <misckit/MiscSwapView.h>
  30.  
  31. @interface MiscSwapViewByPopUp:MiscSwapView
  32. {
  33.     id        popUpCover;
  34. }
  35.  
  36. + initialize;
  37. - setPopUpCover:anObject;
  38. - popUpCover;
  39.  
  40. // To handle the popUps we need a new method that can find the right popUpItem
  41. // by its title and do the comparison...by tag or item.
  42.   
  43. - swapContentView:sender;
  44. - realTrigger;
  45.  
  46. - read: (NXTypedStream *)stream;
  47. - write: (NXTypedStream *)stream;
  48.  
  49. @end
  50.  
  51. /*
  52.  * History: 24.02.94 Made it a direkt subclass of SwapView.
  53.  *
  54.  *            24.01.94 Made it MiscSwap conform.
  55.  *
  56.  *            08.01.94 Conplete redesign and adding of whatPanelByObject/Tag etc.
  57.  *
  58.  *            21.12.93 First subclass of the swapController. whatPanel was im-
  59.  *                     proved to handle tags!
  60.  *
  61.  *
  62.  * Bugs: - does only handle real popUps. PullDowns might not realy work 
  63.  *           because I always set the title inside the trigger method. Hmm
  64.  *           Maybe its better to write a seperate pullDown Controller!
  65.  */